#jinja2: lstrip_blocks: True
{% if ovos_installer_display_server != 'N/A' %}
DISPLAY={{ ovos_installer_display_server_number if ovos_installer_display_server_number is defined else ':0' }}
{% endif %}
{% if 'gpio' in getent_group %}
GPIO_GID={{ getent_group['gpio'][1] }}
{% endif %}
{% if ovos_installer_profile != 'ovos' %}
HIVEMIND_CONFIG_FOLDER={{ ovos_installer_user_home }}/hivemind/config
HIVEMIND_CONFIG_PHAL_FOLDER={{ ovos_installer_user_home }}/hivemind/config/phal
HIVEMIND_SHARE_FOLDER={{ ovos_installer_user_home }}/hivemind/share
HIVEMIND_USER=hivemind
{% endif %}
{% if 'i2c' in getent_group %}
I2C_GID={{ getent_group['i2c'][1] }}
{% endif %}
{% if 'input' in getent_group %}
INPUT_GID={{ getent_group['input'][1] }}
{% endif %}
OVOS_CONFIG_FOLDER={{ ovos_installer_user_home }}/ovos/config
OVOS_CONFIG_PHAL_FOLDER={{ ovos_installer_user_home }}/ovos/config/phal
OVOS_PERSONA_FOLDER={{ ovos_installer_user_home }}/ovos/config/persona
OVOS_SHARE_FOLDER={{ ovos_installer_user_home }}/ovos/share
OVOS_USER=ovos
PULL_POLICY={{ ovos_installer_docker_pull_policy }}
{% if "Raspberry Pi 5" in ovos_installer_raspberrypi and ovos_installer_display_server == "N/A" %}
QT_QPA_EGLFS_INTEGRATION=eglfs_kms
{% elif ovos_installer_display_server == "N/A" %}
QT_QPA_EGLFS_INTEGRATION=eglfs
{% endif %}
{% if "Raspberry Pi 5" in ovos_installer_raspberrypi and ovos_installer_display_server == "N/A" %}
QT_QPA_EGLFS_KMS_CONFIG=/home/$OVOS_USER/.config/mycroft/ovos-eglfs.json
{% endif %}
QT_QPA_PLATFORM={{ 'eglfs' if ovos_installer_display_server == "N/A" else 'wayland;xcb' }}
{% if 'render' in getent_group %}
RENDER_GID={{ getent_group['render'][1] }}
{% endif %}
{% if 'spi' in getent_group %}
SPI_GID={{ getent_group['spi'][1] }}
{% endif %}
TMP_FOLDER={{ ovos_installer_user_home }}/ovos/tmp
{% if _ovos_installer_timezone is defined %}
TZ={{ _ovos_installer_timezone }}
{% else %}
TZ=Etc/UTC
{% endif %}
VERSION={{ ovos_installer_docker_image_tag }}
{% if 'video' in getent_group %}
VIDEO_GID={{ getent_group['video'][1] }}
{% endif %}
{% if ovos_installer_profile == 'satellite' %}
VOICE_SAT_KEY={{ ovos_installer_satellite_key }}
VOICE_SAT_PASSWORD={{ ovos_installer_satellite_password }}
VOICE_SAT_HOST=ws://{{ ovos_installer_listener_host }}
VOICE_SAT_PORT={{ ovos_installer_listener_port | default(5678) }}
{% endif %}
{% if ovos_installer_display_server != 'N/A' %}
WAYLAND_DISPLAY={{ ovos_installer_wayland_display if ovos_installer_wayland_display is defined else 'wayland-0' }}
{% endif %}
XDG_RUNTIME_DIR=/run/user/{{ ovos_installer_uid }}
